package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * PeisPatientExamItemId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientExamItemId implements java.io.Serializable {

	// Fields

	private Integer idRow;
	private Integer idPatientExamItem;
	private Integer idPatientExamDepart;
	private String examFeeItemName;
	private String examItemTypeName;
	private String examItemName;
	private String valueUnit;
	private String valueType;
	private String refRangeForReport;
	private String examItemValuesNumberForReport;
	private String labItemFlagForReport;
	private Double valueMaleMax;
	private Double valueMaleMin;
	private Double valueMaleSevereUp;
	private Double valueMaleSevereDown;
	private Double valueFemaleMax;
	private Double valueFemaleMin;
	private Double valueFemaleSevereUp;
	private Double valueFemaleSevereDown;
	private Integer severeDegree;
	private String examItemValues;
	private String examItemValuesText;
	private String examItemValuesShort;
	private Double examItemValuesNumber;
	private Double examItemValuesNumber2;
	private Double examItemValuesNumber3;
	private String labItemFlag;
	private Boolean FLabItemNormal;
	private String refRange;
	private String examDoctorNameR;
	private Timestamp examinateTime;
	private Integer dispOrder;

	// Constructors

	/** default constructor */
	public PeisPatientExamItemId() {
	}

	/** minimal constructor */
	public PeisPatientExamItemId(Integer idRow, Integer idPatientExamItem,
			Boolean FLabItemNormal) {
		this.idRow = idRow;
		this.idPatientExamItem = idPatientExamItem;
		this.FLabItemNormal = FLabItemNormal;
	}

	/** full constructor */
	public PeisPatientExamItemId(Integer idRow, Integer idPatientExamItem,
			Integer idPatientExamDepart, String examFeeItemName,
			String examItemTypeName, String examItemName, String valueUnit,
			String valueType, String refRangeForReport,
			String examItemValuesNumberForReport, String labItemFlagForReport,
			Double valueMaleMax, Double valueMaleMin, Double valueMaleSevereUp,
			Double valueMaleSevereDown, Double valueFemaleMax,
			Double valueFemaleMin, Double valueFemaleSevereUp,
			Double valueFemaleSevereDown, Integer severeDegree,
			String examItemValues, String examItemValuesText,
			String examItemValuesShort, Double examItemValuesNumber,
			Double examItemValuesNumber2, Double examItemValuesNumber3,
			String labItemFlag, Boolean FLabItemNormal, String refRange,
			String examDoctorNameR, Timestamp examinateTime, Integer dispOrder) {
		this.idRow = idRow;
		this.idPatientExamItem = idPatientExamItem;
		this.idPatientExamDepart = idPatientExamDepart;
		this.examFeeItemName = examFeeItemName;
		this.examItemTypeName = examItemTypeName;
		this.examItemName = examItemName;
		this.valueUnit = valueUnit;
		this.valueType = valueType;
		this.refRangeForReport = refRangeForReport;
		this.examItemValuesNumberForReport = examItemValuesNumberForReport;
		this.labItemFlagForReport = labItemFlagForReport;
		this.valueMaleMax = valueMaleMax;
		this.valueMaleMin = valueMaleMin;
		this.valueMaleSevereUp = valueMaleSevereUp;
		this.valueMaleSevereDown = valueMaleSevereDown;
		this.valueFemaleMax = valueFemaleMax;
		this.valueFemaleMin = valueFemaleMin;
		this.valueFemaleSevereUp = valueFemaleSevereUp;
		this.valueFemaleSevereDown = valueFemaleSevereDown;
		this.severeDegree = severeDegree;
		this.examItemValues = examItemValues;
		this.examItemValuesText = examItemValuesText;
		this.examItemValuesShort = examItemValuesShort;
		this.examItemValuesNumber = examItemValuesNumber;
		this.examItemValuesNumber2 = examItemValuesNumber2;
		this.examItemValuesNumber3 = examItemValuesNumber3;
		this.labItemFlag = labItemFlag;
		this.FLabItemNormal = FLabItemNormal;
		this.refRange = refRange;
		this.examDoctorNameR = examDoctorNameR;
		this.examinateTime = examinateTime;
		this.dispOrder = dispOrder;
	}

	// Property accessors

	public Integer getIdRow() {
		return this.idRow;
	}

	public void setIdRow(Integer idRow) {
		this.idRow = idRow;
	}

	public Integer getIdPatientExamItem() {
		return this.idPatientExamItem;
	}

	public void setIdPatientExamItem(Integer idPatientExamItem) {
		this.idPatientExamItem = idPatientExamItem;
	}

	public Integer getIdPatientExamDepart() {
		return this.idPatientExamDepart;
	}

	public void setIdPatientExamDepart(Integer idPatientExamDepart) {
		this.idPatientExamDepart = idPatientExamDepart;
	}

	public String getExamFeeItemName() {
		return this.examFeeItemName;
	}

	public void setExamFeeItemName(String examFeeItemName) {
		this.examFeeItemName = examFeeItemName;
	}

	public String getExamItemTypeName() {
		return this.examItemTypeName;
	}

	public void setExamItemTypeName(String examItemTypeName) {
		this.examItemTypeName = examItemTypeName;
	}

	public String getExamItemName() {
		return this.examItemName;
	}

	public void setExamItemName(String examItemName) {
		this.examItemName = examItemName;
	}

	public String getValueUnit() {
		return this.valueUnit;
	}

	public void setValueUnit(String valueUnit) {
		this.valueUnit = valueUnit;
	}

	public String getValueType() {
		return this.valueType;
	}

	public void setValueType(String valueType) {
		this.valueType = valueType;
	}

	public String getRefRangeForReport() {
		return this.refRangeForReport;
	}

	public void setRefRangeForReport(String refRangeForReport) {
		this.refRangeForReport = refRangeForReport;
	}

	public String getExamItemValuesNumberForReport() {
		return this.examItemValuesNumberForReport;
	}

	public void setExamItemValuesNumberForReport(
			String examItemValuesNumberForReport) {
		this.examItemValuesNumberForReport = examItemValuesNumberForReport;
	}

	public String getLabItemFlagForReport() {
		return this.labItemFlagForReport;
	}

	public void setLabItemFlagForReport(String labItemFlagForReport) {
		this.labItemFlagForReport = labItemFlagForReport;
	}

	public Double getValueMaleMax() {
		return this.valueMaleMax;
	}

	public void setValueMaleMax(Double valueMaleMax) {
		this.valueMaleMax = valueMaleMax;
	}

	public Double getValueMaleMin() {
		return this.valueMaleMin;
	}

	public void setValueMaleMin(Double valueMaleMin) {
		this.valueMaleMin = valueMaleMin;
	}

	public Double getValueMaleSevereUp() {
		return this.valueMaleSevereUp;
	}

	public void setValueMaleSevereUp(Double valueMaleSevereUp) {
		this.valueMaleSevereUp = valueMaleSevereUp;
	}

	public Double getValueMaleSevereDown() {
		return this.valueMaleSevereDown;
	}

	public void setValueMaleSevereDown(Double valueMaleSevereDown) {
		this.valueMaleSevereDown = valueMaleSevereDown;
	}

	public Double getValueFemaleMax() {
		return this.valueFemaleMax;
	}

	public void setValueFemaleMax(Double valueFemaleMax) {
		this.valueFemaleMax = valueFemaleMax;
	}

	public Double getValueFemaleMin() {
		return this.valueFemaleMin;
	}

	public void setValueFemaleMin(Double valueFemaleMin) {
		this.valueFemaleMin = valueFemaleMin;
	}

	public Double getValueFemaleSevereUp() {
		return this.valueFemaleSevereUp;
	}

	public void setValueFemaleSevereUp(Double valueFemaleSevereUp) {
		this.valueFemaleSevereUp = valueFemaleSevereUp;
	}

	public Double getValueFemaleSevereDown() {
		return this.valueFemaleSevereDown;
	}

	public void setValueFemaleSevereDown(Double valueFemaleSevereDown) {
		this.valueFemaleSevereDown = valueFemaleSevereDown;
	}

	public Integer getSevereDegree() {
		return this.severeDegree;
	}

	public void setSevereDegree(Integer severeDegree) {
		this.severeDegree = severeDegree;
	}

	public String getExamItemValues() {
		return this.examItemValues;
	}

	public void setExamItemValues(String examItemValues) {
		this.examItemValues = examItemValues;
	}

	public String getExamItemValuesText() {
		return this.examItemValuesText;
	}

	public void setExamItemValuesText(String examItemValuesText) {
		this.examItemValuesText = examItemValuesText;
	}

	public String getExamItemValuesShort() {
		return this.examItemValuesShort;
	}

	public void setExamItemValuesShort(String examItemValuesShort) {
		this.examItemValuesShort = examItemValuesShort;
	}

	public Double getExamItemValuesNumber() {
		return this.examItemValuesNumber;
	}

	public void setExamItemValuesNumber(Double examItemValuesNumber) {
		this.examItemValuesNumber = examItemValuesNumber;
	}

	public Double getExamItemValuesNumber2() {
		return this.examItemValuesNumber2;
	}

	public void setExamItemValuesNumber2(Double examItemValuesNumber2) {
		this.examItemValuesNumber2 = examItemValuesNumber2;
	}

	public Double getExamItemValuesNumber3() {
		return this.examItemValuesNumber3;
	}

	public void setExamItemValuesNumber3(Double examItemValuesNumber3) {
		this.examItemValuesNumber3 = examItemValuesNumber3;
	}

	public String getLabItemFlag() {
		return this.labItemFlag;
	}

	public void setLabItemFlag(String labItemFlag) {
		this.labItemFlag = labItemFlag;
	}

	public Boolean getFLabItemNormal() {
		return this.FLabItemNormal;
	}

	public void setFLabItemNormal(Boolean FLabItemNormal) {
		this.FLabItemNormal = FLabItemNormal;
	}

	public String getRefRange() {
		return this.refRange;
	}

	public void setRefRange(String refRange) {
		this.refRange = refRange;
	}

	public String getExamDoctorNameR() {
		return this.examDoctorNameR;
	}

	public void setExamDoctorNameR(String examDoctorNameR) {
		this.examDoctorNameR = examDoctorNameR;
	}

	public Timestamp getExaminateTime() {
		return this.examinateTime;
	}

	public void setExaminateTime(Timestamp examinateTime) {
		this.examinateTime = examinateTime;
	}

	public Integer getDispOrder() {
		return this.dispOrder;
	}

	public void setDispOrder(Integer dispOrder) {
		this.dispOrder = dispOrder;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientExamItemId))
			return false;
		PeisPatientExamItemId castOther = (PeisPatientExamItemId) other;

		return ((this.getIdRow() == castOther.getIdRow()) || (this.getIdRow() != null
				&& castOther.getIdRow() != null && this.getIdRow().equals(
				castOther.getIdRow())))
				&& ((this.getIdPatientExamItem() == castOther
						.getIdPatientExamItem()) || (this
						.getIdPatientExamItem() != null
						&& castOther.getIdPatientExamItem() != null && this
						.getIdPatientExamItem().equals(
								castOther.getIdPatientExamItem())))
				&& ((this.getIdPatientExamDepart() == castOther
						.getIdPatientExamDepart()) || (this
						.getIdPatientExamDepart() != null
						&& castOther.getIdPatientExamDepart() != null && this
						.getIdPatientExamDepart().equals(
								castOther.getIdPatientExamDepart())))
				&& ((this.getExamFeeItemName() == castOther
						.getExamFeeItemName()) || (this.getExamFeeItemName() != null
						&& castOther.getExamFeeItemName() != null && this
						.getExamFeeItemName().equals(
								castOther.getExamFeeItemName())))
				&& ((this.getExamItemTypeName() == castOther
						.getExamItemTypeName()) || (this.getExamItemTypeName() != null
						&& castOther.getExamItemTypeName() != null && this
						.getExamItemTypeName().equals(
								castOther.getExamItemTypeName())))
				&& ((this.getExamItemName() == castOther.getExamItemName()) || (this
						.getExamItemName() != null
						&& castOther.getExamItemName() != null && this
						.getExamItemName().equals(castOther.getExamItemName())))
				&& ((this.getValueUnit() == castOther.getValueUnit()) || (this
						.getValueUnit() != null
						&& castOther.getValueUnit() != null && this
						.getValueUnit().equals(castOther.getValueUnit())))
				&& ((this.getValueType() == castOther.getValueType()) || (this
						.getValueType() != null
						&& castOther.getValueType() != null && this
						.getValueType().equals(castOther.getValueType())))
				&& ((this.getRefRangeForReport() == castOther
						.getRefRangeForReport()) || (this
						.getRefRangeForReport() != null
						&& castOther.getRefRangeForReport() != null && this
						.getRefRangeForReport().equals(
								castOther.getRefRangeForReport())))
				&& ((this.getExamItemValuesNumberForReport() == castOther
						.getExamItemValuesNumberForReport()) || (this
						.getExamItemValuesNumberForReport() != null
						&& castOther.getExamItemValuesNumberForReport() != null && this
						.getExamItemValuesNumberForReport().equals(
								castOther.getExamItemValuesNumberForReport())))
				&& ((this.getLabItemFlagForReport() == castOther
						.getLabItemFlagForReport()) || (this
						.getLabItemFlagForReport() != null
						&& castOther.getLabItemFlagForReport() != null && this
						.getLabItemFlagForReport().equals(
								castOther.getLabItemFlagForReport())))
				&& ((this.getValueMaleMax() == castOther.getValueMaleMax()) || (this
						.getValueMaleMax() != null
						&& castOther.getValueMaleMax() != null && this
						.getValueMaleMax().equals(castOther.getValueMaleMax())))
				&& ((this.getValueMaleMin() == castOther.getValueMaleMin()) || (this
						.getValueMaleMin() != null
						&& castOther.getValueMaleMin() != null && this
						.getValueMaleMin().equals(castOther.getValueMaleMin())))
				&& ((this.getValueMaleSevereUp() == castOther
						.getValueMaleSevereUp()) || (this
						.getValueMaleSevereUp() != null
						&& castOther.getValueMaleSevereUp() != null && this
						.getValueMaleSevereUp().equals(
								castOther.getValueMaleSevereUp())))
				&& ((this.getValueMaleSevereDown() == castOther
						.getValueMaleSevereDown()) || (this
						.getValueMaleSevereDown() != null
						&& castOther.getValueMaleSevereDown() != null && this
						.getValueMaleSevereDown().equals(
								castOther.getValueMaleSevereDown())))
				&& ((this.getValueFemaleMax() == castOther.getValueFemaleMax()) || (this
						.getValueFemaleMax() != null
						&& castOther.getValueFemaleMax() != null && this
						.getValueFemaleMax().equals(
								castOther.getValueFemaleMax())))
				&& ((this.getValueFemaleMin() == castOther.getValueFemaleMin()) || (this
						.getValueFemaleMin() != null
						&& castOther.getValueFemaleMin() != null && this
						.getValueFemaleMin().equals(
								castOther.getValueFemaleMin())))
				&& ((this.getValueFemaleSevereUp() == castOther
						.getValueFemaleSevereUp()) || (this
						.getValueFemaleSevereUp() != null
						&& castOther.getValueFemaleSevereUp() != null && this
						.getValueFemaleSevereUp().equals(
								castOther.getValueFemaleSevereUp())))
				&& ((this.getValueFemaleSevereDown() == castOther
						.getValueFemaleSevereDown()) || (this
						.getValueFemaleSevereDown() != null
						&& castOther.getValueFemaleSevereDown() != null && this
						.getValueFemaleSevereDown().equals(
								castOther.getValueFemaleSevereDown())))
				&& ((this.getSevereDegree() == castOther.getSevereDegree()) || (this
						.getSevereDegree() != null
						&& castOther.getSevereDegree() != null && this
						.getSevereDegree().equals(castOther.getSevereDegree())))
				&& ((this.getExamItemValues() == castOther.getExamItemValues()) || (this
						.getExamItemValues() != null
						&& castOther.getExamItemValues() != null && this
						.getExamItemValues().equals(
								castOther.getExamItemValues())))
				&& ((this.getExamItemValuesText() == castOther
						.getExamItemValuesText()) || (this
						.getExamItemValuesText() != null
						&& castOther.getExamItemValuesText() != null && this
						.getExamItemValuesText().equals(
								castOther.getExamItemValuesText())))
				&& ((this.getExamItemValuesShort() == castOther
						.getExamItemValuesShort()) || (this
						.getExamItemValuesShort() != null
						&& castOther.getExamItemValuesShort() != null && this
						.getExamItemValuesShort().equals(
								castOther.getExamItemValuesShort())))
				&& ((this.getExamItemValuesNumber() == castOther
						.getExamItemValuesNumber()) || (this
						.getExamItemValuesNumber() != null
						&& castOther.getExamItemValuesNumber() != null && this
						.getExamItemValuesNumber().equals(
								castOther.getExamItemValuesNumber())))
				&& ((this.getExamItemValuesNumber2() == castOther
						.getExamItemValuesNumber2()) || (this
						.getExamItemValuesNumber2() != null
						&& castOther.getExamItemValuesNumber2() != null && this
						.getExamItemValuesNumber2().equals(
								castOther.getExamItemValuesNumber2())))
				&& ((this.getExamItemValuesNumber3() == castOther
						.getExamItemValuesNumber3()) || (this
						.getExamItemValuesNumber3() != null
						&& castOther.getExamItemValuesNumber3() != null && this
						.getExamItemValuesNumber3().equals(
								castOther.getExamItemValuesNumber3())))
				&& ((this.getLabItemFlag() == castOther.getLabItemFlag()) || (this
						.getLabItemFlag() != null
						&& castOther.getLabItemFlag() != null && this
						.getLabItemFlag().equals(castOther.getLabItemFlag())))
				&& ((this.getFLabItemNormal() == castOther.getFLabItemNormal()) || (this
						.getFLabItemNormal() != null
						&& castOther.getFLabItemNormal() != null && this
						.getFLabItemNormal().equals(
								castOther.getFLabItemNormal())))
				&& ((this.getRefRange() == castOther.getRefRange()) || (this
						.getRefRange() != null
						&& castOther.getRefRange() != null && this
						.getRefRange().equals(castOther.getRefRange())))
				&& ((this.getExamDoctorNameR() == castOther
						.getExamDoctorNameR()) || (this.getExamDoctorNameR() != null
						&& castOther.getExamDoctorNameR() != null && this
						.getExamDoctorNameR().equals(
								castOther.getExamDoctorNameR())))
				&& ((this.getExaminateTime() == castOther.getExaminateTime()) || (this
						.getExaminateTime() != null
						&& castOther.getExaminateTime() != null && this
						.getExaminateTime()
						.equals(castOther.getExaminateTime())))
				&& ((this.getDispOrder() == castOther.getDispOrder()) || (this
						.getDispOrder() != null
						&& castOther.getDispOrder() != null && this
						.getDispOrder().equals(castOther.getDispOrder())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getIdRow() == null ? 0 : this.getIdRow().hashCode());
		result = 37
				* result
				+ (getIdPatientExamItem() == null ? 0 : this
						.getIdPatientExamItem().hashCode());
		result = 37
				* result
				+ (getIdPatientExamDepart() == null ? 0 : this
						.getIdPatientExamDepart().hashCode());
		result = 37
				* result
				+ (getExamFeeItemName() == null ? 0 : this.getExamFeeItemName()
						.hashCode());
		result = 37
				* result
				+ (getExamItemTypeName() == null ? 0 : this
						.getExamItemTypeName().hashCode());
		result = 37
				* result
				+ (getExamItemName() == null ? 0 : this.getExamItemName()
						.hashCode());
		result = 37 * result
				+ (getValueUnit() == null ? 0 : this.getValueUnit().hashCode());
		result = 37 * result
				+ (getValueType() == null ? 0 : this.getValueType().hashCode());
		result = 37
				* result
				+ (getRefRangeForReport() == null ? 0 : this
						.getRefRangeForReport().hashCode());
		result = 37
				* result
				+ (getExamItemValuesNumberForReport() == null ? 0 : this
						.getExamItemValuesNumberForReport().hashCode());
		result = 37
				* result
				+ (getLabItemFlagForReport() == null ? 0 : this
						.getLabItemFlagForReport().hashCode());
		result = 37
				* result
				+ (getValueMaleMax() == null ? 0 : this.getValueMaleMax()
						.hashCode());
		result = 37
				* result
				+ (getValueMaleMin() == null ? 0 : this.getValueMaleMin()
						.hashCode());
		result = 37
				* result
				+ (getValueMaleSevereUp() == null ? 0 : this
						.getValueMaleSevereUp().hashCode());
		result = 37
				* result
				+ (getValueMaleSevereDown() == null ? 0 : this
						.getValueMaleSevereDown().hashCode());
		result = 37
				* result
				+ (getValueFemaleMax() == null ? 0 : this.getValueFemaleMax()
						.hashCode());
		result = 37
				* result
				+ (getValueFemaleMin() == null ? 0 : this.getValueFemaleMin()
						.hashCode());
		result = 37
				* result
				+ (getValueFemaleSevereUp() == null ? 0 : this
						.getValueFemaleSevereUp().hashCode());
		result = 37
				* result
				+ (getValueFemaleSevereDown() == null ? 0 : this
						.getValueFemaleSevereDown().hashCode());
		result = 37
				* result
				+ (getSevereDegree() == null ? 0 : this.getSevereDegree()
						.hashCode());
		result = 37
				* result
				+ (getExamItemValues() == null ? 0 : this.getExamItemValues()
						.hashCode());
		result = 37
				* result
				+ (getExamItemValuesText() == null ? 0 : this
						.getExamItemValuesText().hashCode());
		result = 37
				* result
				+ (getExamItemValuesShort() == null ? 0 : this
						.getExamItemValuesShort().hashCode());
		result = 37
				* result
				+ (getExamItemValuesNumber() == null ? 0 : this
						.getExamItemValuesNumber().hashCode());
		result = 37
				* result
				+ (getExamItemValuesNumber2() == null ? 0 : this
						.getExamItemValuesNumber2().hashCode());
		result = 37
				* result
				+ (getExamItemValuesNumber3() == null ? 0 : this
						.getExamItemValuesNumber3().hashCode());
		result = 37
				* result
				+ (getLabItemFlag() == null ? 0 : this.getLabItemFlag()
						.hashCode());
		result = 37
				* result
				+ (getFLabItemNormal() == null ? 0 : this.getFLabItemNormal()
						.hashCode());
		result = 37 * result
				+ (getRefRange() == null ? 0 : this.getRefRange().hashCode());
		result = 37
				* result
				+ (getExamDoctorNameR() == null ? 0 : this.getExamDoctorNameR()
						.hashCode());
		result = 37
				* result
				+ (getExaminateTime() == null ? 0 : this.getExaminateTime()
						.hashCode());
		result = 37 * result
				+ (getDispOrder() == null ? 0 : this.getDispOrder().hashCode());
		return result;
	}

}